package json;
import javax.json.bind.annotation.JsonbProperty;
public class studentDTO {
    @JsonbProperty("学号")
    private int studentid;

    @JsonbProperty("性别")
    private String sex;

    @JsonbProperty("姓名")
    private String name;

    @JsonbProperty("年龄")
    private int age;

    @JsonbProperty("籍贯")
    private String where;

    public studentDTO() {
    }
    public studentDTO(int studentid, String sex, String name,int age, String where) {
        this.studentid = studentid;
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.where = where;
    }

    public int getStudentid() {
        return studentid;
    }

    public void setStudentid(int studentid) {
        this.studentid = studentid;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getWhere() {
        return where;
    }

    public void setWhere(String where) {
        this.where = where;
    }

    @Override
    public String toString() {
        return "studentDTO{" +
                "studentid=" + studentid +
                ", sex='" + sex + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", where='" + where + '\'' +
                '}';
    }
}
